#! /usr/bin/env python



def path(n):
    step = 0
    while n>1:
        n = n%2==0 and n/2 or 3*n+1
        step += 1
    return step

def main():
    maxlen = 1
    maxn = 2
    for i in range(2,1000000):
        n = path(i)
        if n > maxlen:
            maxlen = n
            maxn = i

    print maxlen,maxn

if '__main__' == __name__:
    main()
    
